﻿using DapperExtensions.Mapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DapperExt.Web.Models
{
    public class x_Table
    {
        public Guid Id { get; set; }

        public Guid Name { get; set; }
    }

    /// <summary>
    /// 实体对象映射关系  
    /// </summary>
    [Serializable]
    internal class x_TableMapper : ClassMapper<x_Table>
    {
        public x_TableMapper()
        {
            base.Table("x_Table");
            Map(f => f.Id).Key(KeyType.Assigned);
            AutoMap();
        }
    }

}